<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>

<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <jsp:include page="../common/header.jsp" />
    <script type="text/javascript">
        function device() {
            $device = $("input[name=device]");
            $device.bind("click", function () {
                var form1 = $(this).parent();
                form1.attr("action", "teachingArrangeForm.action");
                form1.submit();
            });
        }
        function seeing() {
            $seesing = $("input[name=seeing]");
            $seesing.bind("click", function () {
                var form1 = $(this).parent();
                form1.attr("action", "teachingArrangeSee.action");
                form1.submit();
            });
        }
        function modify() {
            $modify = $("input[name=modify]");
            $modify.bind("click", function () {
                var form1 = $(this).parent();
                form1.attr("action", "teachingArrangeModify.action");
                form1.submit();
            });
        }
        $(function () {
            device();
            seeing();
            modify();
        });
    </script>
    <jsp:include page="../common/mycss.jsp" />
</head>

<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        <aside class="lyear-layout-sidebar">
            <!-- logo -->
            <div id="logo" class="sidebar-header">
                <jsp:include page="../common/title.jsp" />
            </div>
            <div class="lyear-layout-sidebar-scroll">
                <jsp:include page="../common/menu.jsp" />
            </div>
        </aside>
        <!--End 左侧导航-->
        <jsp:include page="../common/top.jsp" />
        <!--页面主要内容-->
        <main class="lyear-layout-content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-toolbar clearfix">
                                <h5>班级管理&nbsp;&gt;&nbsp;班级教学安排</h5>
                            </div>
                            <div class="card-body">
                                <s:actionerror/>
                                <div id="accordion">

                                    <div class="frame">

                                        <s:if test="#session['teachingArrangeStatus']">
                                            <div style="color:red">
                                                相关班级相关学期的教学安排已完成，没有其它课程可供选择
                                            </div>
                                        </s:if>
                                        <s:set name="teachingArrangeStatus" value="false" scope="session">
                                        </s:set>
                                        <s:if test="#session['teachingArrangeFlag']">
                                            <div style="color:red">
                                                没有相关班级相关学期的教学安排计划
                                            </div>
                                        </s:if>
                                        <s:set name="teachingArrangeFlag" value="false" scope="session"></s:set>
                                        <table class="datalist">
                                            <tr>
                                                <th align="center"><strong>有效班级</strong></th>
                                                <th align="center"><strong>学期、操作</strong></th>
                                            </tr>
                                            <s:iterator value="grades">
                                                <tr>
                                                    <td><s:property value="year"/>届<s:property value="name"/> （<s:property value="classID"/>）班</td>
                                                    <td>
                                                        <s:form action="teachingArrangeForm.action" id="form1" theme="simple" method="get">
                                                            <input type="hidden" value='<s:property value="bianHao"/>' name="gradeChose"/>
                                                            <select name="xueqiChose">
                                                                    <%--    <option>1</option>
                                                                        <option>2</option>
                                                                        <option>3</option>
                                                                        <option>4</option>
                                                                        <option>5</option>
                                                                        <option>6</option>
                                                                        <option>7</option>
                                                                        <option>8</option>--%>
                                                                <jsp:include page="xueqi.jsp"/>
                                                            </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                            <input type="button" name="device" value="设置"/>
                                                            <input type="button" name="seeing" value="查看"/>
                                                            <input type="button" name="modify" value="删除"/>
                                                        </s:form></td>
                                                </tr>
                                            </s:iterator>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>

        </main>
        <!--End 页面主要内容-->
    </div>
</div>
</body>
</html>
